package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2023-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_test")
public class HotelTest extends Model<HotelTest> {

    private static final long serialVersionUID=1L;

    /**
     * 用户唯一ID
     */
      @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    /**
     * 手机号
     */
    private String phone;

    private String nickname;

    /**
     * 国家
     */
    private String country;

    /**
     * 省
     */
    private String province;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;


    public static final String UID = "uid";

    public static final String PHONE = "phone";

    public static final String NICKNAME = "nickname";

    public static final String COUNTRY = "country";

    public static final String PROVINCE = "province";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    @Override
    protected Serializable pkVal() {
        return this.uid;
    }

}
